<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="name">
    <p v-text="username"></p>
    <p v-html="info"></p>
<!--    缺点会覆盖-->
</div>
<script src="lib/vue-2.6.12.js"></script>
<script>

    const vm= new Vue({
        el:'#name',
        data:{
            username:'sb',
            info:'<h4 style="color: red; font-weight: bold">欢迎你来学习vue</h4> '
        }
    })
</script>
</body>
</html>